package com.greensam.pixelengine.utils;

import java.util.Optional;
import java.util.function.Consumer;

/**
 * 数据操作工具类
 *
 * @author Ma Chengrui
 * @since 2025/9/18 16:49
 */
public class DataUtils {

    public static <T> void setIfNotNull(T value, Consumer<T> setter) {
        Optional.ofNullable(value).ifPresent(setter);
    }
}
